Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set _items in the ShapeViewModel to prevent exception #14899

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

MikeAlhayek
Copy link
Member

No description provided.

@MikeAlhayek MikeAlhayek changed the title Ma/shape view model Set _items in the ShapeViewModel to prevent exception Dec 14, 2023
public IReadOnlyList<IPositioned> Items
{
get
{
_items ??= new List<IPositioned>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this and copy it when necessary

@MikeAlhayek MikeAlhayek merged commit b1cfb0d into main Dec 14, 2023
3 checks passed
@MikeAlhayek MikeAlhayek deleted the ma/ShapeViewModel branch December 14, 2023 19:52
urbanit pushed a commit to urbanit/OrchardCore that referenced this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants